FROM 88277648/openjre17-min:v1.1
RUN mkdir -p /app
ADD ./spider-service-1.0.jar /app/app.jar
WORKDIR  /app
EXPOSE 8001
ENTRYPOINT ["java","-XX:+UseG1GC","-XX:MaxGCPauseMillis=200","-Dspring.profiles.active=uat","-Dhope2.tushare.api.token=43fe526452c81605eb2b5cb973591a1bfb1eb0383f3cb88b3a91bf18","-Dhope2.xiaoxiong.api.token=GDSwzIemVa","-Dhope2.gugudata.api.key.us=G83PNN5DRNBE","-Dhope2.gugudata.api.key.hk=ZSNXC4GUGJC5SK","-Dhope2.mairui.api.token=10628419563f3b418f","-jar","/app/app.jar"]


#docker run -p 8001:8001 -v /root/hope2/runtimeVolume/data:/opt/hope2/data -v /root/hope2/runtimeVolume/log:/opt/hope2/log -v /root/hope2/runtimeVolume/db:/opt/hope2/db -v /root/hope2/runtimeVolume/rule:/opt/hope2/rule --name=spider -d hope2/spider

